package com.ktjy;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.stereotype.Component;

/**
 * @version v1.0
 * @Author JieGe
 * @Create 2024-12-12 - 10:36
 */
@Configuration // 标识当前类为配置类
// @ComponentScan(basePackages = {"com.ktjy.mapper","com.ktjy.service"})
@ComponentScan(basePackages = {"com.ktjy.config"})
// 对com.ktjy.config包及其子包进行扫描，扫描的目的是让这些包及其子包下的所有类中的注解生效
// 使用@ImportSource注解来读取applicationContext.xml配置文件，
@ImportResource("classpath:applicationContext.xml")
public class MainApplication {
}
